import { useDispatch,useSelector } from "react-redux"
export default function MsgList() { 
  const { msgInfo=[] } = useSelector((s:any) => s);
  return (
    <>
      {msgInfo.map((v,index) => (
        <li key={ index}>{v} </li>
      )) }
    </>
   )
}